<?php
// $Id$

/**
 * Controller_Admin_Main 控制器
 */
class Controller_Admin_Main extends Controller_Abstract
{	
	function actionIndex()
	{
		if (!$this->_check_admin()) header('location:'.url('admin::login'));
		// 加载顶级菜单
		$top_menus = Menus::find('parentid = 0 and isback')->order('order asc')->getAll();
		$this->_view['top_menus'] = $top_menus;
	}
	/**
	 * 
	 * 后台首页
	 */
	function actionMain()
	{
	}
}